import createAxios from '/@/utils/axios'

const kbsUrl = '/admin/kefu.Kbs/'
const sessionUrl = '/admin/kefu.Session/'

export function match(text1: string, text2: string) {
    return createAxios({
        url: kbsUrl + 'match',
        method: 'post',
        data: {
            text1,
            text2,
        },
    })
}

export function records(id: number, page: number) {
    return createAxios({
        url: sessionUrl + 'records',
        method: 'get',
        params: {
            id,
            page,
        },
    })
}
